<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
<HTML><HEAD>
<TITLE>IBM Visualization Data Explorer Programmer&#39;s Reference</TITLE>

<META HTTP-EQUIV="abstract" CONTENT="IBM Visualization Data Explorer
Programmer&#39;s Reference">
<META HTTP-EQUIV="contact" CONTENT="IBM Visualization Data Explorer
(ibmdx@watson.ibm.com)">
<META HTTP-EQUIV="owner" CONTENT="IBM Visualization Data Explorer
(ibmdx@watson.ibm.com)">
<META HTTP-EQUIV="updated" CONTENT="Tue, 16 Sep 1997 ">
<META HTTP-EQUIV="review" CONTENT="Fri, 14 Aug 1998 ">

<META HTTP-EQUIV="keywords" CONTENT="GRAPHICS VISUALIZATION VISUAL PROGRAM DATA
MINING">
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
</HEAD><BODY BGCOLOR="#FFFFFF">

<A NAME="Top_Of_Page"></A>
<H1>IBM Visualization Data Explorer Programmer&#39;s Reference</H1>
<B>&#91; <A HREF="#Bot_Of_Page">Bottom of Page</A> &#124; <A
HREF="progu266.htm">Previous Page</A> &#124; <A HREF="progu268.htm">Next
Page</A> &#124; <A HREF="../proguide.htm#ToC">Table of Contents</A> &#124; <A
HREF="progu097.htm#PToC20">Partial Table of Contents</A> &#124; <A
HREF="progu344.htm#HDRINDEX_START">Index</A> &#93;</B><HR><P>
<H3><A NAME="HDRDXPA" HREF="progu097.htm#PToC_361">DXPrintAlloc</A></H3>
<A NAME="IDX1951"></A>
<A NAME="IDX1952"></A>
<P><STRONG>Function</STRONG>
<P>
Prints a summary of memory use.
<P><STRONG>Syntax</STRONG>
<BR>
<TT><STRONG><BR>
&#35;include &lt;dx/dx.h&gt;<BR>
<P><BR>
void DXPrintAlloc(int t)<BR>
</STRONG></TT><BR>
<P><STRONG>Functional Details</STRONG>
<P>
This routine can be run from Data Explorer, with the Usage module, in script
mode or in the user interface.
When it is run, memory areas should be quiescent (on a multiprocessor
system, for example, no other tasks should be running).
The parameter <TT><STRONG>t</STRONG></TT> specifies the level of detail of
the printout:
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD>0
</TD><TD>Prints out a summary of the current use of memory, both in small and
in large areas.
A typical printout might look like:
</TD></TR></TABLE>
<P>
<PRE>
0: small: 4194304 = hdr 16472 + used 486864 + free 3920
                              + pool 3687048 (limit 4194304)
0: large: 2097152 = hdr 16472 + used 494656 + free 29704
                              + pool 1558120 (limit 54525952)
</PRE>
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD><P>where:
</TD><TD><P>&nbsp;
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD><P>small
</TD><TD><P>is the total number of bytes currently managed by the memory manager
for the small arena.
</TD></TR><TR VALIGN="TOP"><TD><P>large
</TD><TD><P>is the total number of bytes currently managed by the memory manager
for the large arena.
</TD></TR><TR VALIGN="TOP"><TD><P>hdr
</TD><TD><P>is the amount of memory space used by internal data structures.
</TD></TR><TR VALIGN="TOP"><TD><P>used
</TD><TD><P>is the amount of memory space allocated for use.
</TD></TR><TR VALIGN="TOP"><TD><P>free
</TD><TD><P>is the amount of memory previously used and available for reuse.
</TD></TR><TR VALIGN="TOP"><TD><P>pool
</TD><TD><P>is the amount of memory space allocated to Data Explorer but not yet
used.
</TD></TR><TR VALIGN="TOP"><TD><P>limit
</TD><TD><P>is the largest amount of memory that can be managed by the memory
manager.
</TD></TR></TABLE>
</TD></TR><TR VALIGN="TOP"><TD><P>1
</TD><TD><P>Prints one line for every individual <I>allocated</I> block,
stating its size and address.
</TD></TR><TR VALIGN="TOP"><TD><P>2
</TD><TD><P>In addition to the information for allocated blocks (how = 1),
prints the same information for every <I>freed</I> block.
</TD></TR></TABLE>
<P><STRONG>Return Value</STRONG>
<P>
None.
<P><STRONG>See Also</STRONG>
<P>
<TT><STRONG>
<A HREF="progu106.htm#HDRDXALP">DXAllocate, DXAllocateZero, DXAllocateLocal,
DXAllocateLocalZero, DXAllocateLocalOnly, DXAllocateLocalOnlyZero</A>,
<A HREF="progu147.htm#HDRDXFRE">DXFree</A>
</STRONG></TT>
<P>
<A HREF="progu057.htm#HDRSTORAL">13.3 , "Memory Allocation"</A>.
<P><HR><B>&#91; <A HREF="#Top_Of_Page">Top of Page</A> &#124; <A
HREF="progu266.htm">Previous Page</A> &#124; <A HREF="progu268.htm">Next
Page</A> &#124; <A HREF="../proguide.htm#ToC">Table of Contents</A> &#124; <A
HREF="progu097.htm#PToC20">Partial Table of Contents</A> &#124; <A
HREF="progu344.htm#HDRINDEX_START">Index</A> &#93;</B> <br><b>&#91;<a
href="../allguide.htm">Data Explorer Documentation</a>&nbsp;&#124;&nbsp;<a
href="../qikguide.htm">QuickStart Guide</a>&nbsp;&#124;&nbsp;<a
href="../usrguide.htm">User&#39;s Guide</a>&nbsp;&#124;&nbsp;<a
href="../refguide.htm">User&#39;s Reference</a>&nbsp;&#124;&nbsp;<a
href="../proguide.htm">Programmer&#39;s Reference</a>&nbsp;&#124;&nbsp;<a
href="../insguide.htm">Installation and Configuration
Guide</a>&nbsp;&#93;</b><br><p><b>&#91;<a
href="http://www.research.ibm.com/dx">Data Explorer Home
Page</a>&#93;</b><p><HR ALIGN=LEFT WIDTH=600><b>&#91;<A
HREF="http://www.ibm.com/">IBM Home Page</A>&nbsp;&#124;&nbsp;<A
HREF="http://www.ibm.com/Orders/">Order</A>&nbsp;&#124;&nbsp;<A
HREF="http://www.ibm.com/Search/">Search</A>&nbsp;&#124;&nbsp;<A
HREF="http://www.ibm.com/Assist/">Contact IBM</A>&nbsp;&#124;&nbsp;<A
HREF="http://www.ibm.com/Legal/">Legal</A>&nbsp;&#93;</b><hr><p>
<A NAME="Bot_Of_Page"></A>
</BODY></HTML>
